Skip to content

Conversation

@vcnovaes
Copy link

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

  • Make sure your files are in the right folder!
  • Make sure you add the extension of the file (.cpp, .python, .java, etc).
  • If your code is a solution for a code problem, please tell which one.
  • Make sure your code is working, test for a lot of cases.

Description

This is a solution for the problem summation triangle of the Code Wars site: Summation Triangle - Code Wars

image
Above you have the problem description!

In this code we have two solutions but only the pg_approach(unsigneed n) is accepted by CodeWars, the brute_force(int n) approach fails in terms of complexity, so it's not accepted by CodeWars, but it gives the right results
❤️ Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant